import request from '@/utils/request'

// 查询审批权限设置列表
export function listBizApprovalSetting (query) {
  return request({
    url: '/biz/bizApprovalSetting/list',
    method: 'get',
    params: query
  })
}

// 查询审批权限设置详细
export function getBizApprovalSetting (id) {
  return request({
    url: '/biz/bizApprovalSetting/' + id,
    method: 'get'
  })
}

// 新增审批权限设置
export function addBizApprovalSetting (data) {
  return request({
    url: '/biz/bizApprovalSetting',
    method: 'post',
    data: data
  })
}

// 修改审批权限设置
export function updateBizApprovalSetting (data) {
  return request({
    url: '/biz/bizApprovalSetting',
    method: 'put',
    data: data
  })
}

// 删除审批权限设置
export function delBizApprovalSetting (id) {
  return request({
    url: '/biz/bizApprovalSetting/' + id,
    method: 'delete'
  })
}


// 导出审批权限设置
export function exportBizApprovalSetting (query) {
  return request({
    url: '/biz/bizApprovalSetting/export',
    method: 'get',
    params: query
  })
}

// 获取初始化数据
export function getInitData (dictTypes) {
  return request({
    url: '/biz/bizApprovalSetting/getInitData/' + dictTypes,
    method: 'get'
  })
}
// 树表格检索
export function searchDocumentTypeList (searchInfo) {
  return request({
    url: '/biz/bizApprovalSetting/searchDocumentTypeList',
    method: 'get',
    params: searchInfo
  })
}